//
//  AppBaseColor.swift
//  AnneKit-Swift
//
//  Created by 宁小陌 on 2021/2/2.
//  Copyright © 2021 宁小陌. All rights reserved.
//

import Foundation
import UIKit

/// 颜色
extension UIColor {
    static var kThemeColorHex           = UIColor.UIColorFromRGB(rgbValue: 0xff4163)
    static var kViewColorNormal         = UIColor.kColorWithRGB(red: 247, green: 249, blue: 251)
    /// 公共按钮背景图(颜色)
    static var kButtonColorNormal       = UIColor.UIColorFromRGB(rgbValue: 0xff4163)
    static var kButtonColorHighlighted  = UIColor.UIColorFromRGB(rgbValue: 0xff4163)
    /// TabBar 默认颜色和选择颜色
    static var kTabBarColorNormal       = UIColor.kTextColor136
    static var kTabBarColorSelected     = UIColor.kColorWithRGB(red: 255, green: 65, blue: 99)
    /// 图片背景色
    static var kImageViewColor          = UIColor.kTextColor242
    /// 分割线
    static var kLinerViewColor          = UIColor.kTextColor228
    static var kSeparatorColor          = UIColor.kColorWithRGB(red: 200, green: 199, blue: 204)
    /// tableview section 颜色
    static var kTableViewInSectionColor = UIColor.kViewColorNormal
    
    static var kWhiteColor              = UIColor.white
    static var kBlackColor              = UIColor.black
    static var kGrayColor               = UIColor.lightGray
    static var kClearColor              = UIColor.clear
    
    static var kRedColor                = UIColor.kColorWithRGB(red: 255,green: 0,blue: 0)
    /// 角标颜色
    static var kBadgeColor              = UIColor.kColorWithRGB(red: 252,green: 13,blue: 27)
    static var kTextColor23             = UIColor.kColorWithRGB(red: 23,green: 23,blue: 23)
    static var kTextColor34             = UIColor.kColorWithRGB(red: 34,green: 34,blue: 34)
    static var kTextColor51             = UIColor.kColorWithRGB(red: 51,green: 51,blue: 27)
    static var kTextColor102            = UIColor.kColorWithRGB(red: 102,green: 102,blue: 102)
    static var kTextColor136            = UIColor.kColorWithRGB(red: 136,green: 136,blue: 136)
    static var kTextColor153            = UIColor.kColorWithRGB(red: 153,green: 153,blue: 153)
    static var kTextColor228            = UIColor.kColorWithRGB(red: 228,green: 228,blue: 228)
    static var kTextColor230            = UIColor.kColorWithRGB(red: 230,green: 230,blue: 230)
    static var kTextColor238            = UIColor.kColorWithRGB(red: 238,green: 238,blue: 238)
    static var kTextColor242            = UIColor.kColorWithRGB(red: 242,green: 242,blue: 242)
}

extension UIFont {
    /// 系统字体
    static var largeFont    = UIFont.defaultFont(size: 20)
    static var bigFont      = UIFont.defaultFont(size: 18)
    static var titleFont    = UIFont.defaultFont(size: 17)
    static var standardFont = UIFont.defaultFont(size: 16)
    static var normalFont   = UIFont.defaultFont(size: 14)
    static var smallFont    = UIFont.defaultFont(size: 12)
    
    static var largeBold    = UIFont.boldFont(size: 20)
    static var bigBold      = UIFont.boldFont(size: 18)
    static var titleBold    = UIFont.boldFont(size: 17)
    static var standardBold = UIFont.boldFont(size: 16)
    
    /** 自定义字体 */
    static var kFontSizeRegular20   = UIFont.kFontSizeRegular(size: 20)
    static var kFontSizeRegular18   = UIFont.kFontSizeRegular(size: 18)
    static var kFontSizeRegular17   = UIFont.kFontSizeRegular(size: 17)
    static var kFontSizeRegular16   = UIFont.kFontSizeRegular(size: 16)
    static var kFontSizeRegular14   = UIFont.kFontSizeRegular(size: 14)
    static var kFontSizeRegular12   = UIFont.kFontSizeRegular(size: 12)
    
    static var kFontSizeMedium20    = UIFont.kFontSizeMedium(size: 20)
    static var kFontSizeMedium18    = UIFont.kFontSizeMedium(size: 18)
    static var kFontSizeMedium17    = UIFont.kFontSizeMedium(size: 17)
    static var kFontSizeMedium16    = UIFont.kFontSizeMedium(size: 16)
    static var kFontSizeMedium14    = UIFont.kFontSizeMedium(size: 14)
    static var kFontSizeMedium12    = UIFont.kFontSizeMedium(size: 12)
    
    static var kFontSizeBold20    = UIFont.kFontSizeBold(size: 20)
    static var kFontSizeBold18    = UIFont.kFontSizeBold(size: 18)
    static var kFontSizeBold17    = UIFont.kFontSizeBold(size: 17)
    static var kFontSizeBold16    = UIFont.kFontSizeBold(size: 16)
    static var kFontSizeBold14    = UIFont.kFontSizeBold(size: 14)
    static var kFontSizeBold12    = UIFont.kFontSizeBold(size: 12)
}
